﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Views/Shared/Master/Base.Master" CodeBehind="Groups.aspx.vb" Inherits="MiYABiS.PassBox.Groups" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div class="">
        <asp:GridView ID="grdvGroups" runat="server" AllowSorting="False" ShowFooter="true"
            CssClass="table table-condensed table-striped table-hover" AutoGenerateColumns="false" GridLines="None" DataKeyNames="Id"
            EnableViewState="false">
            <Columns>
                <asp:TemplateField HeaderText="編集">
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" Text="" runat="server" ImageUrl="~/images/pencil.png" CommandName="Edit" />
                        <asp:ImageButton ID="btnDelete" Text="" runat="server" ImageUrl="~/images/cross.png" CommandName="Delete" OnClientClick="if (!window.confirm('本当に削除しますか？')){return false;}" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:ImageButton ID="btnUpdate" Text="" runat="server" ImageUrl="~/images/database_save.png" CommandName="Update" />
                        <asp:ImageButton ID="btnCancel" Text="" runat="server" ImageUrl="~/images/delete.png" CommandName="Cancel" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:ImageButton ID="btnAdd" Text="" runat="server" ImageUrl="~/images/add.png" CommandName="AddNew" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="グループ名">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblGroup"><%#Eval("Name")%></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox runat="server" ID="txtGroup" ClientIDMode="Static" Text='<%#Eval("Name")%>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox runat="server" ID="txtGroupAdd" ClientIDMode="Static" Text=''></asp:TextBox>
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <asp:CustomValidator ID="validGroup" runat="server" Display="None" ValidationGroup="validGroup"></asp:CustomValidator>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Scripts" runat="server">
</asp:Content>
